#include <signal.h> WORD Pkill( WORD pid, WORD sig);
If pid is a positive number, then the signal is sent to the process with that process id.
If pid is 0, the signal is sent to all members of the process group of the calling process (i.e. all processes which have the same process group number). This includes, of course, the calling process itself.
If pid is less than 0, the signal is sent to all processes with process group number -pid.
ERANGE if sig is not a valid signal.
EFILNF if
pid
> 0
and the indicated process has terminated or does not exist, or if
pid
< 0
and there are no processes in the corresponding process group.
EACCDN if pid > 0, the sending process does not have an effective user id of 0, and the recipient process has a different user id from the sending process.